package com.wans.guli.ware.feign;

import com.wans.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "guli-member", path = "/guli-member")
public interface MemberFeignClient {

    /**
     * 地址信息
     */
    @RequestMapping("/member/memberreceiveaddress/address/{id}")
    R addressById(@PathVariable("id") Long id);

    /**
     * 地址信息
     */
    @RequestMapping("/member/memberreceiveaddress/addressId/{id}")
    R addressByAddrId(@PathVariable("id") Long id);
}
